<!DOCTYPE html>
<html>

<head>
  <meta charset="utf-8">
  <title>Bootstrap 实例 - 模态框（Modal）插件</title>
  <link rel="stylesheet" href="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/css/bootstrap.min.css">
  <script src="https://cdn.staticfile.org/jquery/2.1.1/jquery.min.js"></script>
  <script src="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/js/bootstrap.min.js"></script>
  <style>
    .message-modal {
      display: none;
      position: fixed;
      left: 0;
      top: 0;
      width: 100%;
      height: 100%;
      background: rgba(0, 0, 0, 0.5);
      z-index: 9999;
    }

    .message-modal.open {
      display: block;
    }

    .message-modal .mb-container {
      padding: 0;
      background: #ffffff;
      border-radius: 4px;
      width: 340px;
      box-shadow: 0 2px 8px 0;
      height: 180px;
      margin: 16% auto;
    }

    .message-modal .mb-container .mb-header {
      background: #f3f5f8;
      border: 1px solid #d4dae4;
      border-radius: 2px 2px 0 0;
      width: 340px;
      height: 48px;
      padding: 13px 13px 13px 22px;
    }

    .message-modal .mb-container .mb-header .mb-title {
      font-size: 14px;
      color: #4a4a4a;
      letter-spacing: 0;
      text-align: left;
    }

    .message-modal .mb-container .mb-close {
      margin-top: 21px;
      margin-right: 21px;
      float: right;
      cursor: pointer;
      width: 22px;
    }

    .message-modal .mb-container .mb-body {
      /*padding: 29px 17px 0 22px;
  height: 152px;*/
      padding: 40px;
      height: 180px;
    }

    .message-modal .mb-container .mb-body .mb-message {
      height: 68px;
      margin-bottom: 0;
      font-size: 14px;
      color: #4a4a4a;
      letter-spacing: 0;
      text-align: left;
    }

    .message-modal .mb-container .mb-body .mb-message-new {
      font-size: 16px;
      font-weight: 500;
      color: #111111;
      line-height: 22px;
      margin-bottom: 12px;
    }

    .message-modal .mb-container .mb-body .mb-submsg-new {
      font-size: 14px;
      font-weight: 400;
      color: #555555;
      line-height: 20px;
      margin-bottom: 48px;
      height: 20px;
    }

    .message-modal .mb-container .mb-body .btn {
      padding: 0;
      border-radius: 4px;
      border: 1;
      width: 65px;
      height: 32px;
      line-height: 32px;
    }

    .message-modal .mb-container .mb-body .btn.btn-success {
      background: #00B39E;
    }

    .message-modal .mb-container .mb-body .btn.btn-default {
      background: #ffffff;
      border: 1px solid #bababa;
      color: #737373;
    }

    .message-modal .mb-container .mb-body .btn.btn-default:hover {
      background: #ffffff;
      border: 1px solid #00B39E;
      color: #00B39E;
    }

    .message-modal .mb-container .mb-body .btn.btn-default:active {
      background: rgba(0, 179, 158, 0.1);
      border: 1px solid #00B39E;
      border-radius: 4px;
    }

    .message-modal .mb-container .mb-body .btn.text {
      text-align: center;
      font-size: 14px;
      color: #ffffff;
      letter-spacing: 0;
    }

    .message-modal .mb-container .mb-body .mb-modal-icon {
      float: left;
      width:22px;
    }

    .message-modal .lite-modal-container {
      margin-top: 8%;
      height: auto;
      width: 400px;
    }

    .message-modal .lite-modal-container .lite-modal-body {
      border: 1px solid transparent;
      border-top-width: 2px;
      padding: 10px;
      padding-left: 15px;
      font-size: 14px;
    }

    .message-modal .lite-modal-container .lite-modal-body .lite-modal-icon {
      height: 16px;
      vertical-align: middle;
      margin: 10px 0;
    }

    .message-modal .lite-modal-container .lite-modal-body .lite-modal-message {
      vertical-align: middle;
      margin: 10px;
      margin-right: 0;
      word-break: break-all;
    }

    .message-modal .loading-modal-container {
      margin: 10% auto;
      width: 100px;
      background-color: #FFF;
    }

    .message-modal .loading-modal-container .loading-modal-body {
      width: 100px;
      height: 100px;
      background: black;
      border-radius: 6px;
      opacity: 0.7;
    }

    .message-modal .loading-modal-container .loading-modal-icon {
      width: 45px;
      height: 45px;
      margin: 27.5px;
    }

    .message-modal.no-fade {
      background: none;
    }
  </style>
</head>

<body>

  <h2>创建模态框（Modal）</h2>
  <!-- 按钮触发模态框 -->
  <button class="btn btn-primary btn-lg" data-toggle="modal" data-target="#myModal">
    开始演示模态框
  </button>
  <!-- 模态框（Modal） -->
  <div class="message-modal open" style="display:none" id="myModal">
    <div class="mb-container" style="width:309px; height:80px; ">
      <img src="https://ss3.bdstatic.com/70cFv8Sh_Q1YnxGkpoWK1HF6hhy/it/u=987955202,4135544225&fm=15&gp=0.jpg" class="mb-close" />
      <div class="mb-body" style="padding-top:18px; padding-left:22px;height: 80px;">
        <img class="mb-modal-icon" src="https://ss3.bdstatic.com/70cFv8Sh_Q1YnxGkpoWK1HF6hhy/it/u=987955202,4135544225&fm=15&gp=0.jpg"
          style="display:${showImgUrl};position:relative;top:${ifVerticalCenter}" />
        <div class="mb-message-new"
          style="margin-left:42px; margin-bottom:5px;position: relative;top: ${ifVerticalCenter};">该策略名称已被占用，请重新命名</div>
        <div class="mb-submsg-new" style="margin-left:42px;display:${showSubMsg}"></div>
      </div>
    </div>
  </div>
  <!-- <div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-dialog">
      <div class="modal-content">
        <div class="modal-header">
          <button type="button" class="close" data-dismiss="modal" aria-hidden="true">
            &times;
          </button>
          <h4 class="modal-title" id="myModalLabel">
            模态框（Modal）标题
          </h4>
        </div>
        <div class="modal-body">
          在这里添加一些文本
        </div>
        <div class="modal-footer">
          <button type="button" class="btn btn-default" data-dismiss="modal">关闭
          </button>
          <button type="button" class="btn btn-primary">
            提交更改
          </button>
        </div>
      </div><!-- /.modal-content -->
    </div><!-- /.modal -->
  </div> -->
</body>

</html>